/*
3.33333
3.333333333
3.333333333
0000000123
123
    0x64
 *
 */
#include <iostream>
#include <iomanip>
using namespace std;
int main(void){
	
	cout << 10/3.0 << endl;
	
	//  cout << setprecision(10) << 10/3.0 << endl;
	cout.precision(10);
	cout << 10/3.0 << endl;
	cout << 10/3.0 << endl;
	
	//cout << setw(10) << setfill('0') << 123 << endl;
	//这里width fill均只作用一次
	cout.width(10);
	cout.fill('0');
	cout << 123 << endl;
	cout << 123 << endl;
	
	//cout << setw(8) << left << setfill(' ') << hex << showbase << 100 << endl;
	cout.width(8);
	cout.fill(' ');
	cout.setf(ios::hex, ios::basefield);
	cout.setf(ios::showbase);
	 cout << 100 << endl;
	return 0;
}

